﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;

[CustomEditor(typeof(AutoSet))]
[CanEditMultipleObjects]
public class AutoLocation : Editor
{
    AutoSet autoSet;
    public override void OnInspectorGUI()
    {

        DrawDefaultInspector();
        AutoSet myScript = (AutoSet)target;

        if (GUILayout.Button("SetCellBack"))
        {
            myScript.SetCellBack();
        }

        GUILayout.Space(10f);

    }
}
